package com.telit.uav.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;


/**
 * app_cruise_track
 * @author 
 */
@ApiModel(value="com.telit.entity.AppCruiseTrack巡航表")
@Data
public class AppCruiseTrack implements Serializable {
    /**
     * 主键ID
     */
    @ApiModelProperty(value="主键ID,巡航id")
    @NotBlank(message = "巡航id不能为空")
    private String id;

    /**
     * 时长
     */
    @ApiModelProperty(value="时长")
    private String duration;

    /**
     * 开始时间
     */
    @ApiModelProperty(value="开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date startTime;

    /**
     * 结束时间
     */
    @ApiModelProperty(value="结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date endTime;

    /**
     * 距离
     */
    @ApiModelProperty(value="距离")
    private String distance;

    /**
     * 飞手ID
     */
    @ApiModelProperty(value="飞手ID")
    private Long protectorId;

    /**
     * 点集合
     */
    @ApiModelProperty(value="点集合")
    private String pointCollection;

    /**
     * 巡护类型
     */
    @ApiModelProperty(value="巡护类型")
    private String patrolType;

    /**
     * 无人机code
     */
    @ApiModelProperty(value="无人机code")
    private String uavCode;

    /**
     * 备注
     */
    @ApiModelProperty(value="备注")
    private String remark;

    /**
     * 巡航面积
     */
    @ApiModelProperty(value="巡航面积")
    private String flyArea;

    //*******************扩展字段********************//
    @ApiModelProperty(value = "主任务id")
    @TableField(exist = false)
    private Long taskId;

    private static final long serialVersionUID = 1L;
}